.class public Lcom/xingbook/park/ui/h;
.super Landroid/widget/RelativeLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/LinearLayout;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/RelativeLayout;

.field private e:Landroid/widget/ImageView;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Lcom/xingbook/park/ui/o;

.field private j:Lcom/xingbook/park/ui/i;

.field private k:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/o;Z)V
    .locals 1

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/ui/h;->k:Z

    iput-object p3, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    const v0, -0x80809

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/h;->setBackgroundColor(I)V

    invoke-direct {p0, p1, p2}, Lcom/xingbook/park/ui/h;->b(Landroid/content/Context;F)V

    if-eqz p4, :cond_0

    invoke-direct {p0, p1, p2}, Lcom/xingbook/park/ui/h;->a(Landroid/content/Context;F)V

    :cond_0
    return-void
.end method

.method private a(Landroid/content/Context;F)V
    .locals 12

    const/4 v11, 0x2

    const/4 v10, -0x2

    const/high16 v9, 0x4200

    const/4 v8, 0x1

    const/4 v7, 0x0

    const/high16 v0, 0x4284

    mul-float/2addr v0, p2

    float-to-int v0, v0

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v2, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    invoke-virtual {v2, v1}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/h;->addView(Landroid/view/View;)V

    new-array v1, v11, [[I

    new-array v2, v8, [I

    const v3, 0x101009e

    aput v3, v2, v7

    aput-object v2, v1, v7

    new-array v2, v7, [I

    aput-object v2, v1, v8

    new-array v2, v11, [I

    fill-array-data v2, :array_0

    new-instance v3, Landroid/content/res/ColorStateList;

    invoke-direct {v3, v1, v2}, Landroid/content/res/ColorStateList;-><init>([[I[I)V

    const/high16 v1, 0x41e0

    mul-float/2addr v1, p2

    float-to-int v1, v1

    const/high16 v2, 0x4208

    mul-float/2addr v2, p2

    float-to-int v2, v2

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    const v5, 0x7f0a0028

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setId(I)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v4, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    const/16 v5, 0x11

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v4, v2, v7, v1, v7}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v4, v3}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    mul-float v5, v9, p2

    invoke-virtual {v4, v7, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v10, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v5, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    iget-object v5, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v4, v5}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/view/View;

    invoke-direct {v4, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v5, 0x7f0a0029

    invoke-virtual {v4, v5}, Landroid/view/View;->setId(I)V

    const v5, -0x333334

    invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v6, 0x4248

    mul-float/2addr v6, p2

    float-to-int v6, v6

    invoke-direct {v5, v11, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v6, 0xf

    invoke-virtual {v5, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const v6, 0x7f0a0028

    invoke-virtual {v5, v8, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    invoke-virtual {v4, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    invoke-virtual {v5, v4}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/TextView;

    invoke-direct {v4, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    const v5, 0x7f0a002a

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setId(I)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v4, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    const/16 v5, 0x11

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    const-string v5, "\u5220\u9664"

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v4, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v4, v1, v7, v2, v7}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    mul-float v3, v9, p2

    invoke-virtual {v1, v7, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v10, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const v3, 0x7f0a0029

    invoke-virtual {v1, v8, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v3, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    iget-object v3, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v1, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    const v3, 0x7f0a0026

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setId(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    invoke-virtual {v1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    const v3, 0x7f020296

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    int-to-float v3, v0

    const/high16 v4, 0x421c

    mul-float/2addr v4, p2

    sub-float/2addr v3, v4

    const/high16 v4, 0x4000

    div-float/2addr v3, v4

    float-to-int v3, v3

    int-to-float v4, v0

    const/high16 v5, 0x421c

    mul-float/2addr v5, p2

    sub-float/2addr v4, v5

    const/high16 v5, 0x4000

    div-float/2addr v4, v5

    float-to-int v4, v4

    invoke-virtual {v1, v2, v3, v2, v4}, Landroid/widget/ImageView;->setPadding(IIII)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v3, 0x4228

    mul-float/2addr v3, p2

    mul-int/lit8 v4, v2, 0x2

    int-to-float v4, v4

    add-float/2addr v3, v4

    float-to-int v3, v3

    invoke-direct {v1, v3, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0xb

    invoke-virtual {v1, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v3, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    invoke-virtual {v3, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    iget-object v3, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    invoke-virtual {v1, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    const v3, 0x7f0a0027

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setId(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    invoke-virtual {v1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    const/16 v3, 0x11

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    invoke-virtual {v1, v2, v7, v2, v7}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    const v2, -0x99999a

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    mul-float v2, v9, p2

    invoke-virtual {v1, v7, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    const-string v2, "\u53d6\u6d88"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v10, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v0, 0xb

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-void

    :array_0
    .array-data 0x4
        0x66t 0x66t 0x66t 0xfft
        0xcct 0xcct 0xcct 0xfft
    .end array-data
.end method

.method private b(Landroid/content/Context;F)V
    .locals 8

    const/high16 v7, 0x4210

    const/high16 v6, 0x4000

    const/high16 v5, 0x4284

    const/4 v4, 0x0

    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    mul-float v3, v5, p2

    float-to-int v3, v3

    invoke-direct {v1, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/h;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    mul-float v1, v7, p2

    div-float/2addr v1, v6

    float-to-int v1, v1

    mul-float v2, v7, p2

    div-float/2addr v2, v6

    float-to-int v2, v2

    invoke-virtual {v0, v4, v1, v4, v2}, Landroid/widget/ImageView;->setPadding(IIII)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v1, 0x4224

    mul-float/2addr v1, p2

    float-to-int v1, v1

    mul-float v2, v5, p2

    float-to-int v2, v2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v1, 0x4208

    mul-float/2addr v1, p2

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    const/high16 v1, 0x4170

    mul-float/2addr v1, p2

    float-to-int v1, v1

    invoke-virtual {v0, v1, v4, v4, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    const/high16 v1, 0x4200

    mul-float/2addr v1, p2

    invoke-virtual {v0, v4, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    const v1, -0x99999a

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x2

    mul-float v2, v5, p2

    float-to-int v2, v2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    invoke-static {p1}, Lcom/xingbook/ting/play/j;->a(Landroid/content/Context;)Lcom/xingbook/ting/play/j;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ting/play/j;->i()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    invoke-static {v0}, Lcom/xingbook/ting/play/j;->a(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020291

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020293

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_2
    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020292

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method


# virtual methods
.method public a(Z)V
    .locals 5

    const/4 v4, 0x0

    const/16 v3, 0x8

    invoke-virtual {p0, v4}, Lcom/xingbook/park/ui/h;->setVisibility(I)V

    iput-boolean p1, p0, Lcom/xingbook/park/ui/h;->k:Z

    if-eqz p1, :cond_5

    invoke-virtual {p0}, Lcom/xingbook/park/ui/h;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/ting/play/j;->a(Landroid/content/Context;)Lcom/xingbook/ting/play/j;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ting/play/j;->i()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    invoke-static {v0}, Lcom/xingbook/ting/play/j;->a(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020291

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/xingbook/park/ui/h;->d:Landroid/widget/RelativeLayout;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->h()Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_1
    :goto_1
    iget-object v0, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v1}, Lcom/xingbook/park/ui/o;->g()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v1}, Lcom/xingbook/park/ui/o;->f()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->d()Z

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setSelected(Z)V

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    const-string v1, "\u53d6\u6d88\u5168\u9009"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_2
    :goto_2
    return-void

    :cond_3
    const/4 v1, 0x1

    if-ne v0, v1, :cond_4

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020293

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_4
    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020292

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_5
    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->g()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0, v3}, Lcom/xingbook/park/ui/h;->setVisibility(I)V

    goto :goto_0

    :cond_6
    iget-object v0, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    :cond_7
    iget-object v0, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    const-string v1, "\u5168\u9009"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2
.end method

.method public onClick(Landroid/view/View;)V
    .locals 5

    const/4 v4, 0x1

    const/16 v3, 0x8

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0028

    if-ne v0, v1, :cond_2

    invoke-virtual {p1}, Landroid/view/View;->isSelected()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->c()Z

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->e()Z

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0027

    if-ne v0, v1, :cond_5

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->j:Lcom/xingbook/park/ui/i;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->j:Lcom/xingbook/park/ui/i;

    invoke-interface {v0}, Lcom/xingbook/park/ui/i;->a()Z

    move-result v0

    if-nez v0, :cond_0

    :cond_3
    iget-boolean v0, p0, Lcom/xingbook/park/ui/h;->k:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_4
    iget-object v0, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v0, v2}, Lcom/xingbook/park/ui/o;->a(Z)V

    goto :goto_0

    :cond_5
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a002a

    if-ne v0, v1, :cond_6

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v0}, Lcom/xingbook/park/ui/o;->i()Z

    goto :goto_0

    :cond_6
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0026

    if-ne v0, v1, :cond_7

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->i:Lcom/xingbook/park/ui/o;

    invoke-interface {v0, v4}, Lcom/xingbook/park/ui/o;->a(Z)V

    goto :goto_0

    :cond_7
    iget-object v0, p0, Lcom/xingbook/park/ui/h;->a:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/ui/h;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/ting/play/j;->a(Landroid/content/Context;)Lcom/xingbook/ting/play/j;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ting/play/j;->j()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/ui/h;->c:Landroid/widget/TextView;

    invoke-static {v0}, Lcom/xingbook/ting/play/j;->a(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-nez v0, :cond_8

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020291

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_0

    :cond_8
    if-ne v0, v4, :cond_9

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020293

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_0

    :cond_9
    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020292

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_0
.end method
